package com.googlecode.gxtmvp.widget.client.impl;

import com.extjs.gxt.ui.client.data.ModelData;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
import com.extjs.gxt.ui.client.widget.grid.Grid;
import com.googlecode.gxtmvp.widget.client.HasSelectionModel;

public class MvpGrid<M extends ModelData> extends Grid<M> implements HasSelectionModel<M> {
  
  private final ColumnModel columnModel;
  
  public MvpGrid(final ColumnModel columnModel) {
    super(null, null);
    this.columnModel = columnModel;
  }
  
  @Override
  public void setStore(final ListStore<M> store) {
    reconfigure(store, columnModel);
  }
}
